LOAD BSP

This command will load a BSP world into the 3D scene.

  Syntax
LOAD BSP PK3 Filename, BSP Filename
  Parameters
PK3 Filename
String
The bsp object number
BSP Filename
String
The first parameter allows you to specify a packed file containing the BSP world files

  Returns

This command does not return a value.

  Description

The BSP world automatically draws to the current camera and cannot be rotated or repositioned. Culling, texturing and collision are all handled automatically and through the related world commands. The first parameter allows you to specify a packed file containing the BSP world files, normally a PAK or PK3 file. If the BSP world is not being loaded from a packed file, this parameter should be an empty string. The second parameter is the BSP filename of the world you wish to load. This file can either be contained within the specified packed file, or exist as a standalone BSP file. If loading the BSP file as a standalone file, ensure the current directory contains any files used by the BSP world.

  Example Code
load bsp "ikzdm1.pk3","ikzdm1.bsp"
make object sphere 1,100
position object 1,0,0,0
set bsp camera 1
set bsp camera collision 1,0,0.75,0
set bsp object collision radius 1,1,0,0,0
set bsp collision threshhold 1,0.001
do
control camera using arrowkeys 0,5,4
sync
loop
delete bsp
end
  See also

WORLD Commands Menu
Index